

package com.cmcc.pcap.packet.sctp.nas.impl.ies;


import com.cmcc.pcap.packet.sctp.nas.core.ies.InformationElement4;
import com.cmcc.pcap.packet.sctp.nas.utils.OctetInputStream;
import com.cmcc.pcap.packet.sctp.nas.utils.OctetOutputStream;
import com.cmcc.pcap.packet.sctp.nas.utils.octets.OctetString;

public class IEAdditionalInformation extends InformationElement4 {
    public OctetString data;

    public IEAdditionalInformation() {
    }

    public IEAdditionalInformation(OctetString data) {
        this.data = data;
    }

    @Override
    protected IEAdditionalInformation decodeIE4(OctetInputStream stream, int length) {
        IEAdditionalInformation res = new IEAdditionalInformation();
        res.data = stream.readOctetString(length);
        return res;
    }

    @Override
    public void encodeIE4(OctetOutputStream stream) {
        stream.writeOctetString(data);
    }
}
